import request from "@/utils/request";

// 添加活动的请求
export function addActivity(data) {
    return request({
        url: "/manage",
        method: "post",
        headers:{
            'update':false
        },
        data,
    });
}
// 请求活动数据
export function activityList(data) {
    return request({
        url: "/manage",
        method: "get",
        data,
    });
}
// 编辑活动
export function editActivity(data){
    return request({
        url: "/manage",
        method: "post",
        headers:{
            'update':true
        },
        data,
    });
}
// 删除活动
export function delActivity(id){
    return request({
        url:`/manage/${id}`,
        method: "delete",
    })
}